package com.he.hsdyc.mapper;

import com.he.hsdyc.model.vo.CourseOrderVo;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

public interface OrderMapper {
    //根据orderId查找退费总金额
    BigDecimal countRefundsByOrderDelete(@Param("orderId") Long id);

    //根据orderId查找退费总金额
    BigDecimal countRefundsByOrder(@Param("orderId") Long id);


    //6+后台课程订单列表
    List<Map<String, Object>> listback(CourseOrderVo vo);

    //6+后台课程订单新增图表统计（包含退费）
    Map<String,Object> countNew(CourseOrderVo vo);

    Map<String,Object> countRefunds(CourseOrderVo vo);

}